{% extends "public/home.html" %}
{% load bootstrap3 %}

{% block content %}
    <div class="container-fluid">
        <div class="row">
            <div class="panel panel-default panel-info">
              <form class="form" action={% url posturl|default_if_none:"main:home" %} method="post">
                <div class="panel-heading nav">
                    <p class="pull-left">{% block title %}{{title}}{% endblock %}</p>
                    <div class="btn btn-group pull-right">
                        <a href={% url posturl|default_if_none:"main:home" %} class="btn btn-default">
                            <span class="glyphicon glyphicon-off" aria-hidden="true"></span></a>
                        <button type='submit' class='btn btn-success'>
                            <span class="glyphicon glyphicon-ok" aria-hidden="true"></span></button>
                    </div>
                </div>
                <div class="panel panel-body small">
                        {% csrf_token %}
                        {% if form %}
                            {% bootstrap_form form %}
                        {% endif %}
                        <div class="clearfix"></div>

                </div>
             </form>
            </div>
        </div>
    </div>
{% endblock %}
